package com.day03;


//while循环
public class Demo06 {
    public static void main(String[] args) {
        //定义计数器
        int count=0;
        //定义初始值
        int i=1;
        //while循环
        while (i<=100){
            //判断偶数
            if (i%2==0){
                System.out.print(i+" ");
                count++;
                if (count%5==0){
                    System.out.println();
                }
            }
            //条件控制语句i
            i++;
        }
        System.out.println(count);
    }
}
